#ifndef EGG_MESHACTOR_H
#define EGG_MESHACTOR_H

#include "Actor.h"
#include <assimp/scene.h>
#include <assimp/cimport.h>
#include <assimp/postprocess.h>

namespace egg{

    class MeshActor : public Actor{
    public:
        MeshActor();
        void setMaterial(MaterialPtr _mtl);
        void load(const string& _fileName);
        void onUpdateBounding();
        void onRendering(RendererPtr& _renderer);
        Drawable3D* getDrawable(const string& _name);
    protected:
        map<string,Drawable3D*> mDrawables;
    };

}

#endif